﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tetris_dif
{
    class GameField
    {
        public int StartX { get; private set; }
        public int StartY { get; private set; }
        public readonly int height = 20;
        public readonly int width = 10;

        public GameField(int startX, int startY)
        {
            StartX = startX;
            StartY = startY;
        }
        public bool IsOnField(int x, int y)
        {
            if ((x >= StartX) && (x < width + StartX)
                && (y >= StartY) && (y < height + StartY))
                return true;
            return false;
        }
    }


}
